import { HttpRequest } from '@/shared/http/commonAxios'

export class LoginApi {
	/**
	 * 登录
	 */
	static login(data) {
		return HttpRequest.post<string>('/auth/login', data)
	}

	/**
	 * 注册
	 */
	static registry(data) {
		return HttpRequest.post<boolean>('/auth/registry', data)
	}
}
